package com.chinasofti.manager.domain.arrlist;

import java.util.ArrayList;

public class Demo01 {
    public static void main(String[] args) {
        ArrayList<String> arr = new ArrayList<>();
        arr.add("hello");
        arr.add("world");
        arr.add("java");
        System.out.println(arr);
//        arr.remove("world");
//        arr.remove("worlds");
        String remove=arr.remove(1);
        System.out.println(remove);
        System.out.println(arr.set(0,"javaee"));
        System.out.println(arr);
        System.out.println(arr.get(1));
        System.out.println(arr.size());

    }
}
